package com.study.dao;

import com.study.entity.Permission;

import java.util.List;

/**
 * sys_permission表的接口
 */
public interface PermissionDao {
    int insertPermission(Permission permission);

    // 删除资源(逻辑删除)
    int deletePermission(Integer permissionId);

    // 更新资源
    int updatePermission(Permission permission);

    // 查询资源
    List<Permission> selectAllPermission();

    List<Permission> getParentPermissionInfo(Integer level);

    Permission selectPermissionByResId(Integer permissionId);

    List<Permission> selectPermission_enable();
}
